-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Function To Check All Relevant MiMa Versions #2265
Add Function To Check All Relevant MiMa Versions #2265
Conversation
build.sbt
Outdated
else List(minor) | ||
val patchVersions: List[Int] = | ||
if (minor == 0 || patch == 0) List.empty[Int] | ||
else Range(0, patch - 1).inclusive.toList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, I wonder if this would work. Your patchVersions is derived from the current major.minor.patch range, but you don't know if your previous minor version's patch range right?
e.g. if the current version is 1.1.0
, you wouldn't check against 1.0.1
? or if the current version is 1.1.3-SNAPSHOT
, your list would include 1.0.2 which doesn't exist. Another issue is that if either if the current patch is 0, you wouldn't check against anything, e.g. 1.2.0-SNAPSHOT
wouldn't check mima, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is why I knew this would be the place. 😄
edit: Your right I could only check the .0
for min versions different than the current version.
Codecov Report
@@ Coverage Diff @@
## master #2265 +/- ##
=======================================
Coverage 94.96% 94.96%
=======================================
Files 334 334
Lines 5801 5801
Branches 214 215 +1
=======================================
Hits 5509 5509
Misses 292 292 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Removes Need for Manually Setting Binary Compatible Versions